import Vue from 'vue'
import App from './App.vue'
import router from "./router";
import store from "./store";
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
import _ from "lodash";
import echarts from "echarts";
import "@/assets/color.less";
import {Tips} from '@/common/index.js';
import Auth from "./utils/AuthButton.js";

Vue.use(Auth);
Vue.use(Tips);
Vue.prototype._ = _;
Vue.prototype.$echarts = echarts;
Vue.use(ElementUI, { size: "medium", zIndex: 3000 });

// 给body添加class名 实现换肤，第一次打开时添加默认样式的class就好了
var bodyClass = localStorage.getItem("themeColor")
  ? localStorage.getItem("themeColor")
  : "theme_default";
document.body.className = bodyClass;
document.title = "华圆管理系统"

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app')
